package com.zboin.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhboom
 * @date 2025/6/10 21:17
 */
@Data
@TableName("user")
public class UserInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = -202506010211929L;

    @TableId
    private Integer id;

    @TableField("name")
    private String name;

    @JsonIgnore
    @TableField("password")
    private String password;

    @TableField("role")
    private String role;

    @TableField("create_date")
    private LocalDateTime createDate;

    @TableField("update_date")
    private LocalDateTime updateDate;
}
